package com.liuceng.zen.pojo.form;

import org.hibernate.validator.constraints.NotBlank;

import lombok.Data;

@Data
public class LoginForm extends BaseForm {
  @NotBlank(message = "请输入账号")
  // @Pattern(regexp = Member.LOGINNAME_PATTERN, message = "账号是4到20个汉字、字母、数字、下划线")
  private String loginName;

//  @NotBlank(message = "请输入密码")
  // @Length(min = Member.PASSWORD_MIN_LENGTH, max = Member.PASSWORD_MAX_LENGTH,
  // message = "密码长度需在{min}到{max}之间")
  private String loginPassword;

  // @NotBlank(message = "请输入验证码")
  // @Length(min = Member.VERIFYCODE_LENGTH, max = Member.VERIFYCODE_LENGTH, message =
  // "验证码长度为{min}位")
  private String captcha;

  //false: 为用户名密码登录   true:扫码登录
  private Boolean isWeChatLogin;
}
